package com.lxmes.business.mapper;

import java.util.List;

import com.lxmes.business.domain.CcChukuInfo;
import com.lxmes.business.domain.CcRukuInfo;
import com.lxmes.common.annotation.DataScope;

/**
 * 入库单Mapper接口
 * 
 * @author 张志煜
 * @date 2022-11-27
 */
public interface CcRukuInfoMapper 
{
    /**
     * 查询入库单
     * 
     * @param id 入库单主键
     * @return 入库单
     */
    public CcRukuInfo selectCcRukuInfoById(Long id);

    /**
     * 查询入库单列表
     * 
     * @param ccRukuInfo 入库单
     * @return 入库单集合
     */
    @DataScope(deptAlias = "st", userAlias = "st")
    public List<CcRukuInfo> selectCcRukuInfoList(CcRukuInfo ccRukuInfo);

    @DataScope(deptAlias = "st", userAlias = "st")
    public List<CcRukuInfo> selectCcRukuInfoMainList(CcRukuInfo ccRukuInfo);

    /**
     * 查询入库单结算列表
     *
     * @param ccRukuInfo 入库单
     * @return 入库单集合
     */
    public List<CcRukuInfo> selectJieSuanCcRukuInfoList(CcRukuInfo ccRukuInfo);
    /**
     * 新增入库单
     * 
     * @param ccRukuInfo 入库单
     * @return 结果
     */
    public int insertCcRukuInfo(CcRukuInfo ccRukuInfo);

    /**
     * 修改入库单
     * 
     * @param ccRukuInfo 入库单
     * @return 结果
     */
    public int updateCcRukuInfo(CcRukuInfo ccRukuInfo);

    /**
     * 删除入库单
     * 
     * @param id 入库单主键
     * @return 结果
     */
    public int deleteCcRukuInfoById(Long id);

    /**
     * 批量删除入库单
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteCcRukuInfoByIds(Long[] ids);

    //获取今天的code编码
    public String getNewCode(String newDate);

    //查询待执行入库的数据
    public List<CcRukuInfo> selectZxCcRukuInfo(Long[] ids);

}
